#ifndef HTTP_H
#define HTTP_H

#include <QString>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QEventLoop>
#include <QObject>


class Http : public QObject
{
    Q_OBJECT
public:
    Http();
    static bool post_sync(QString url, QMap<QString, QString> header, QByteArray &requestData, QByteArray &replyData);
    //static bool post_sync(const QString &url, const QMap<QString, QString> &header, const QByteArray &data, QByteArray &response);
};

#endif // HTTP_H
